package com.artfighting.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.artfighting.model.embed.ELong;

@Entity
@Table(name = "tblpictures")
public class Picture extends ELong {

	@Column(name = "Name")
	private String name;
	
	@Column(name = "URL")
	private String url;
	
	@Column(name = "Ordinal")
	private String ordinal;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "AlbumID")
	private Album album;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getOrdinal() {
		return ordinal;
	}

	public void setOrdinal(String ordinal) {
		this.ordinal = ordinal;
	}

	public Album getAlbum() {
		return album;
	}

	public void setAlbum(Album album) {
		this.album = album;
	}
	
}
